package Dynamic2;

import java.lang.reflect.Proxy;

/**
 * @author fly
 * @create 2021--05--18--10:20
 */
public class JdkProxyFactory {
    public static Object getProxy(Object target){
        return Proxy.newProxyInstance(target.getClass().getClassLoader(),target.getClass().getInterfaces(),
                new Dali(target));
    }
}
